# Contributor: Eloi Torrents <eloitor@disroot.org>
# Maintainer: Eloi Torrents <eloitor@disroot.org>
pkgname=lrcalc
pkgver=2.1
pkgrel=1
pkgdesc="Littlewood-Richardson Calculator"
url="https://sites.math.rutgers.edu/~asbuch/lrcalc/"
arch="all"
license="GPL-3.0-or-later"
subpackages="$pkgname-dev $pkgname-libs"
source="https://sites.math.rutgers.edu/~asbuch/lrcalc/lrcalc-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
76db29af51fb97e582d37b92a426cacf85fd61b8e7c2a70dc99dec23b396d62d996f0c66b5bbbd8b6928b46fa1186c9bb3c28aa91646cdccd38bd9b783af44d7  lrcalc-2.1.tar.gz
"
